Ext.define('extjs6test.view.core.JurisdictionManager', {
    extend: 'extjs6test.view.base.BaseManager',
    alias: 'widget.jurismngr',
    requires: [
        'extjs6test.view.core.JurisdictionManagerController',
        'extjs6test.view.core.JurisdictionGrid',
        'extjs6test.store.JurisdictionTree'
    ],
    controller: 'jurismngr',
    layout: {
        type: 'hbox',
        align: 'stretch'
    },
    bind: {
        title: '{jurisdictionManager.title}'
    },
    glyph: 'xf1ba@FontAwesome',
    items: [
        {
            xtype: 'treepanel',
            reference: 'tree',
            flex: 0.3,
            // bind:{
            //     width:'{jurisdictionManager.tree.width}',
            //     store:'{naviMenus}'
            // },
            store: Ext.create('extjs6test.store.JurisdictionTree'),
            listeners: {
                render: 'onTreePanelRender',
                select: 'onTreeItemSelect'
            }
        },
        {xtype: 'jurisgrid', flex: 1, reference: 'jurisGrid'}
    ]
});
